package cn.com.w.dao.Entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;

import java.io.Serializable;
/**
 * <p>
 * 用户表
 * </p>
 *
 * @author wangJK
 * @since 2025-04-25
 */
@Getter
@Setter
@ToString
@TableName("sys_user")
@AllArgsConstructor
@NoArgsConstructor
@Builder
//@ApiModel(value = "SysUser对象", description = "用户表")
public class SysUser implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    //@ApiModelProperty("主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户名
     */
    @TableField("username")
    //@ApiModelProperty("用户名")
    private String username;

    /**
     * 密码
     */
    //@ApiModelProperty("密码")
//    @TableField("password")
//    private String password;

    /**
     * 用户状态，1-开启-0禁用
     */
    @TableField("status")
    //@ApiModelProperty("用户状态，1-开启-0禁用")
    private Boolean status;

    /**
     * 密码是否失效，1-可用，0-失效
     */
    @TableField("password_non_expired")
    //@ApiModelProperty("密码是否失效，1-可用，0-失效")
    private Boolean passwordNonExpired;

    /**
     * 微信唯一标识
     */
    @TableField("wechat_id")
    private String wechatId;

    /**
     * 手机号
     */
    @TableField("phone_number")
    private String phoneNumber;

    /**
     * 邮箱
     */
    @TableField("email")
    private String email;

    public static final String ID = "id";

    public static final String USERNAME = "username";

    public static final String PASSWORD = "password";

    public static final String STATUS = "status";

    public static final String PASSWORD_NON_EXPIRED = "password_non_expired";
}
